Fast binary coded decimal incrementing circuit

ABSTRACT

A Binary Coded Decimal (BCD) incrementing circuit and memory. The incrementing circuit has a small amount of delay associated with it so that it may be utilized as a stage of a shift register memory. The incrementing circuit includes an adder circuit, a sampling circuit and a detector circuit. The sampling circuit samples the most significant bit of a BCD digit when the least significant bit of the same digit is being outputted from the memory. The adder circuit adds one to the least significant bit in response to a control signal or one to the other bits in response to a carry condition in the adder and to a decimal carry signal. The detector circuit is coupled to the output of the memory, to the sampling circuit and to the control signal for generating the decimal carry signal and disabling the adder circuit when the control signal is present and the BCD digit being outputted is a decimal nine.

This is a continuation of U.S. application Ser. No. 783,517 filed April 1, 1977 now abandoned.

BACKGROUND OF THE INVENTION

This invention relates to a Binary Coded Decimal (BCD) memories and incrementing circuits.

Memories and incrementing circuits are, of course, well known in the prior art. Such devices have, for the most part, been either pure binary incrementing circuits or have been BCD incrementing circuits with several bits of delay associated with the incrementing circuit. It was therefore one object of this invention to provide a BCD incrementing circuit to be used with a BCD memory in which the incrementing circuit had a small amount of delay associated therewith.

It is another object of this invention that the incrementing circuit automatically perform a binary coded decimal correction upon digits of data being outputted from a memory. It is another object of this invention that the incrementing circuit be implementable with MOS FET transistors and have an amount of delay equivalent to 1/2 stage of a shift register.

The foregoing objects are achieved as is now described. A memory, and preferably a shift register is provided with an output. Sampling means are coupled to the shift register at a point whereby the most significant bit of a binary coded decimal digit is outputted therefrom when the least significant bit of the same binary coded decimal digit is being outputted from the output of the memory. An adder circuit is provided for adding one to the least significant bit of the binary coded decimal digit outputted from the memory in response to a control signal and for adding one to the other bits outputted from the memory in response to a carry condition occurring in the adder circuit during the preceding bit of the same binary coded decimal digit and in response to a decimal carry signal. The decimal carry signal is generated by a detector circuit, which is also effective for disabling the adder circuit. The detector circuit is responsive to the sampling circuit, the output of the shift and said control signal for disabling the adder circuit whenever the binary coded decimal digit being outputted from the memory is equivalent to a decimal nine and the control signal is present.

BRIEF DESCRIPTION OF THE DRAWINGS

The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as further objects and advantages thereof, will be best understood by reference to the following detailed description of an illustrative embodiment, when read in conjunction with the drawings, wherein:

FIG. 1 is a pictorial view of an electronic portable calculator of the type which may embody the invention;

FIG. 2 is a simplified block diagram of a multi-chip calculator system which may be utilized in practicing the present invention;

FIGS. 3a-3b are detailed block diagrams of the arithmetic chip featured in FIG. 2;

FIG. 4 is a detailed block diagram of the SCOM chip featured in FIG. 2;

FIGS. 5a-5e depict in representative form the instruction words decoded by the arithmetic and SCOM chips;

FIG. 5f depicts the originization of the EXT signal;

FIG. 5g depicts the first ROM address as stored in the address register;

FIG. 5h depicts the instruction words decoded on the second ROM chip and selected instruction words decoded on the arithmetic chip, but which may be conveniently employed in connection with the utilization of second ROM chip;

FIGS. 6a-6b are timing diagrams showing the timing of various parts of the multi-chip system;

FIG. 7 is a representation of the keyboard input matrix;

FIGS. 8a-8d are a composite schematic diagram of the arithmetic chip of FIG. 2;

FIGS. 9a-9e are a composite schematic diagram of the SCOM chip of FIG. 2;

FIGS. 10a-10r are schematics of certain circuits used in FIGS. 8a-8d and 9a-9e;

FIG. 11 is a block diagram of a modern electronic calculator equipped with one embodiment of the invention;

FIG. 12 is a block diagram of another embodiment of the invention which may be utilized with a modern electronic calculator of the type depicted in FIG. 11;

FIG. 13 is a pictorial view of an electronic calculator having an opening for removeably receiving a packaged second second ROM chip;

FIG. 14 is a simplified block diagram of a multi-chip calculator system utilizing the present invention;

FIG. 15 is a function diagram of the logical organization of data stored in the second ROM;

FIG. 16 depicts the variable boundary between data and program steps in the calculator's memory;

FIG. 17 is a block diagram of the second ROM chip;

FIGS. 18a-18i form a composite schematic diagram of the second ROM chip when arranged as shown in FIG. 18;

FIG. 19 is a representation of data stored in the memory registers on the double SCOM chips; and

FIG. 20 is a simplified diagram of the fast binary coded decimal incrementing circuit used in the second ROM chip.

LOCATION OF THE DRAWINGS

FIGS. 17-18 and 20 accompany this patent. FIGS. 2, 3a-3b, 4, 5a-5g, 6a-6b, 8a-8d, 9a-9e and 10a-10r are hereby incorporated by reference to U.S. Pat. No. 3,900,722, entitled "Multi-Chip Calculator System Having Cycle and Subcycle Timing Generators", which issued on Aug. 19, 1975 to Michael J. Cochran and Charles P. Grant, Jr. and which is assigned to the assignee of this invention. FIGS. 1, 5h, 7, 11-16, and 19 are hereby incorporated by reference to U.S. Patent Application Ser. Number 783,903 filed Apr. 1, 1977 now U.S. Pat. No. 4,153,937.

DETAILED DESCRIPTION

An electronic calculator system having high order capability, which uses the present invention, will be described with reference to two U.S. Patents or applications. Line 21, column 4 through line 31, column 44 of U.S. Pat. No. 3,900,722 and the entirety of U.S. Patent Application Ser. No. 783,903 is incorporated herein by reference. For a complete understanding of the calculator system employing the present invention, as well as definitions and explanations of the control and timing signal referred to herein, reference should be made to the aforementioned U.S. Patents. It should be appreciated that the following is a detailed description of a plug-in Read-Only-Memory (ROM) chip, used in a multi-chip calculator system. A description of other chips preferably used with the plug-in ROM chip herein described is contained in the aforementioned U.S. Patents. The Fast Binary Coded Decimal Incrementing Circuit of this invention may be used with this ROM chip and thus the description of this chip includes a detailed discussion of the Incrementing Circuit.

The ROM disposed on this chip is called the second ROM and it is used to store a plurality of program codes, each program code being effective for addressing a set of instruction words stored in a main program ROM (and referred to as a first ROM). Inasmuch as the address used to address the second ROM may be altered by a relative amount with appropriate keyboard inputs and since the keyboard includes a decimal number keyboard, the second ROM is addressed by a BCD address in an address register. The address register is, in this embodiment a shift register and an add one/BCD corrector circuit (the Incrementing Circuit) is included to increment the address in the address register in response to a control signal. A decoded FETCH instruction supplies this control signal in this embodiment.

The tables referred to herein are hereby incorporated by reference to the aforementioned U.S. Patent Application Ser. No. 783,903.

DESCRIPTION OF THE SECOND ROM CHIP AND THE INTERFACE BETWEEN THE SECOND ROM CHIP AND THE OTHER CALCULATOR CHIPS

Referring now to FIG. 17, there is shown a block diagram of second ROM chip 48'. The second ROM 48 implemented thereon, is provided by binary coded decimal (BCD) ROM 600. The output of BCD ROM 600, which outputs the program codes listed in TABLE III, for instance, is connected to serializers 605 and 606. Serializer 605 converts both the high digit and low digit of the program code to serial format and supplies it to a digit selector. The serializer 606 converts only the high digit of the program code to serial and also supplies it to digit selector 607. Digit selector 607 provides the output of serializer 605 to external output control 608 in response to a decoded FETCH instruction or supplies the output of serializer 606 to external output control 608 in response to a decoded FETCH HIGH instruction.

BCD ROM 600 is addressed by an address in program counter 601. The address in program counter 601 preferably is a BCD four digit numeral. The address in program counter 601 is incremented each time a FETCH (but not a FETCH HIGH) instruction is decoded and is maintained in BCD format by an one bit/BCD corrector 604. Program counter 601 may be loaded one digit at a time with a digit appearing on External (EXT) via digit controls 602a-602d. Digit strobe 603 controls which one of the digit control 602a-602d is enabled; digit strobe 603 sequentially enables digit controls 602a-602d in response to a decoded UNLOAD PC (unload program counter) or a LOAD PC (load program counter) instruction. Digit strobe 603 is reset by a decoded FETCH instruction. The digit control 602a-602d enabled by digit strobe 603 inputs a single digit (four bits) of the four digit number from the EXT bus in response to a decoded LOAD PC instruction, the number being obtained from the bits occurring during state times S3-S6 on the EXT bus. Also, the enabled digit control 602a-602d outputs a digit from program counter 601 to the EXT bus in response to a decoded UNLOAD PC instruction.

State time generator 609 outputs an indication to state time PLA 610 of which one of the 16 possible state times of an instruction cycle the calculator is in. State time generator 609 is responsive to IDLE for maintaining the state times generated thereby in phase with state times generator on the arithmetic chip 10 or double SCOM chips 12a and 12 b, for instance. State time PLA 610 outputs selected timing signals to the various logic circuits and also to serial instruction decode 611. Serial instruction decode 611 is also responsive to the serial instruction words appearing on IRG. Serial instruction decode 611 decodes the aforementioned FETCH, FETCH HIGH, UNLOAD PC and LOAD PC instructions.

External output control 608 outputs the serialized low and high program code digits or the serialized high digit alone from digit selector 607 in response to the FETCH and FETCH HIGH instruction, respectively, and outputs the digit from the enabled digit control 602a-602d in response to an UNLOAD PC instruction, the output from external output control being provided to the EXTERNAL bus.

Considering FIGS. 3a and 3b with FIG. 17, the following discussion examines the flow of data between second ROM chip 48', arithmetic chip 10 and the main ROMs 20a-20c. When a program is to be called from second ROM chip 48' according to the aformentioned 2ND, PGM, page number and label key sequence, the location 0000 is first loaded into the program counter 601. This may be done for instance by (1) zeroing a selected register 50a-50e, which loads the zero in register R5 65. As disclosed in the incorporated by reference U.S. Pat. No. 3,900,722, register R5 65 is automatically loaded with the least significant digit after some arithmetic operation involving the arithmetic unit and Register R5 65 may be loaded with the least significant digit in keyboard register 54 in response to a KRR5 instruction. Also the least significant digit of keyboard register 54 may be loaded with the contents of register R5 65 in response to a R5KR instruction. Now, the zero digit in register R5 65 is loaded into the least significant digit position of keyboard register 54. After having reset digit strobe with a FETCH instruction, the zero is loaded into each of the four digits of program counter 601 by four sequential LOAD PC instructions, thereby transferring the zero in the LSD of the keyboard register into all digit positions of program counter 601. Then a FETCH HIGH instruction is issued followed by a load keyboard register with EXTERNAL (EXTKR) instruction for loading the high digit of the program code outputted from ROM 600 into the keyboard registor. The contents of keyboard register 54 are then loaded into register R5 65 and thence into a register 50a-50e using an R5-Adder instruction (FIG. 5b). This high digit may then be shifted in its register to the next more significant digit position by register shift instructions (FIG. 5b). A FETCH instruction then follows, which is followed by a EXTKR, KRR5 and R5-Adder instructions to load the low digit into the register in which the high digit had been previously loaded, thereby providing the high and low digits in one of the operational registers 50a-50e. This number may then be subtracted with the inputted page number to determine whether the inputted page number is available in ROM 600.

As can be seen, having an R5 register of a single digit length complicates the transferring of the low and high order digits of the program code into an operational register 50a-50e. It should be evident that an eight bit register R5 65 would simplify this process; the method herein described is used because register R5 in the pre-existing arithmetic chip 10 only has four bit positions. Modification to the above described instruction sequence for a calculator system having an eight bit R5 register 54 should be evident to those skilled in the art.

It should be also evident to those skilled in the art that this addressing sequence could be simplified if the I/O bus were used in lieu of EXT. Then, however, additional connections would be necessary to interface the second ROM chip 48' with the rest of the calculator system, thereby complicating the plug assembly for interfacing chip 48' with the remainder of the calculator system.

Assuming that the inputted page number is available in ROM 600, the inputted page number is multiplied by two and the resulting address is loaded one digit at a time into program counter 601 via register R5 65, keyboard register 54 and the EXT bus. As has been previously discussed, the two program codes at that location and the following location in ROM 600 are read out thereof one digit at a time using a sequence of FETCH HIGH, EXTKR, KRR5, KR→Adder, SHIFT, FETCH, EXTKR, KRR5, R5→Adder, SHIFT instructions and so forth in the manner previously set forth for four digits. At this time, the four digit address of the first program code for the inputted page number has been loaded into a selected register 50a-50e. This process is then repeated for the next two program codes, which are loaded into another register, this address defining the first program code on the page immediately following the inputted page number. The difference of these two numbers is taken and stored and the address of the program code on the inputted page is then loaded one digit at a time into program counter 601 by generally reversing the above sequence and substituting the FETCH and FETCH HIGH instructions with LOAD PC instructions, thereby loading program counter 601 with the address of the first program code on the inputted page number. The program codes are then read out sequencially and compared with the inputted label, the calculator testing for a match thereof. For each FETCH operation accomplished during this label search, the aforementioned difference is decremented by one. If the decrementing difference becomes equal to zero before a match is found, the calculator generates an error condition inasmuch as the label being searched for does not exist on the particular page inputted by the operator. Once the inputted label is detected, the outputted program codes are loaded into program counter 54 which in turn is used to address main ROMs 20a-20c when a PREG instruction is generated telling main ROMs 20a-20c to branch on the address being outputted on EXT. The microcode at that address is then read out in the usual manner to accomplish the function indicated by the outputted program code, theat sequence of events taking between fifty and several thousand instruction cycles, for instance. At the end of this sequence of instructions, a flag is tested to determine whether another program code is to be read from second ROM 48, or whether a program code is to be read from the program code storage area in RAMs 14a-14c, whether a program code is to be read from the aforementioned constant ROM area in double SCOM chips 12a or 12 b or whether the calculator is simply to await another keyboard input by the operator. This flag in a memory on one of the double SCOM chips; the control of which the above-mentioned elements control calculator operation will be subsequently discussed. Assuming control is to be directed back to second ROM 48, FETCH and PREG instructions will again be issued to cause the calculator to branch to the location defined by the subsequent program code in second ROM 48. This process will be repeated until a RETURN program code is loaded into keyboard register 54, and main ROM 20a-20c branches to the location defined thereby; there instructions transfer control back to normal keyboard inputs and the display is activated with the contents of register A, unless of course, the above-mentioned 2ND, PRGM, page number, label key sequence occurred as a separate chain in a user inputted program in RAMs 14a-14d, in which case, control would be then returned to the program thereat.

It has previously been indicated that after the page number has been inputted, a label search is commenced on that page by inputting an appropriate label, i.e. either the labels A-E or A'-E' or the subroutine key (SBR) combined with a nonnumeric key (indicating that such key is being used as a label) or a three digit number (which is treated as a relative address, as aforementioned). It should be appreciated that data may be entered into the memories, including the display register, after the page number is inputted and before the label or relative address is inputted. In fact, many of the programs in the embodiment of second ROM 48 programmed according to Table VIII assume that the number in the display at the time the label is inputted is to be used during the execution of the program identified by the label.

Referring now to composite FIG. 18a-18i, which for ease of understanding should be arranged as shown in FIG. 18j, there is shown a detailed logic diagram of second ROM chip 48'. BCD ROM 600 is implemented as a conventional virtual ground type ROM of the type disclosed in U.S. Pat. No. 3,934,233, entitled "Read-Only-Memory For Electronic Calculator", which issued Jan. 20, 1976 and is assigned to the assignee of this invention. Decoders 620 and 621 used in addressing ROM 600 are important features of this invention which permit ROM 600 to be addressed using BCD data without wasted space within ROM 600. The decoders heretofore known in the prior art, such as those exemplified by U.S. Pat. No. 3,934,233, decode either binary, octal, or hexadecimal data, as the case may be. These decoders may be used with a ROM to decode BDC data, of course; however, in that case, large portions of the ROM would go unused inasmuch as hexadecimal numbers 11 through 16 would be decodable, but have no need to be decoded. Using the addressing scheme herein disclosed, permits the addressing of ROM 600 with BCD data without the wasted space within the ROM which would otherwise result with conventional decoders.

ROM 600 is implemented as a 5000×8 bit array for storing 5000 eight bit program codes, the addresses thereof being the BCD encoded numerals 0000-4999. These four numerals are stored in program counter 601. Decoders 620 and 621 are able to decode these 5000 addresses without decoding the non-BCD codes ofter seen in the binary data contained in a register such as program counter 601. As will be seen, the ROM metal line decoder 620 uniquely decodes the one of 125 metal lines while the ROM diffusion line decoder 621 decodes one out of forty diffusion lines for each bit in a program code. Inasmuch as 125×40 equals 5000, 5000 program codes in ROM 600 will be uniquely identified by metal decoder 620 and diffusion decoder 621.

Metal decoder 620 comprises a plurality of one of five decoders. These one of five decoders are provided in a three level cascaded arrangement inasmuch as 5×5×5 equals 125. Referring to dashed lines B1-B5, it can be seen that the dashed line B1 encompasses a one of five decoder, as do references dashed lines B2-B5. The inputs of one of five decoders B1-B5 are connected to the outputs of one of five decoder C1, all of which are used to perform a one out of twenty-five decode. One of five decoders C2-C5 are identical to one of five decoders B1-B5. The five outputs from one of five decoders C2-C5 are each coupled to one of five decoders like B1-B5 (not shown) for providing the decoding of metal lines 25-125. The inputs of one of five decoders C1-C5 are connected to the output of a third level one of five decoder identified by a reference line D. The B level decoders (e.g. B1-B5) are responsive to the A1-A3 bits outputted from program counter 601, while the C level decoders are responsive to the A7-A5 bits and the D level decoder is responsive to the A9-All bits from program counter 601. The remaining bits, (e.g. A0, A4, A8, A12, A13, and A14) are decoded by diffusion decoder 621, for providing a one out of forty decode. Diffusion decoder 621 is divided into eight sections 621a-621h for addressing the eight bits of the addressed program code. As can be seen decoder section 621a has one output line (P_(o)) one ground line and 39 intermediate diffusions, inasmuch as ROM 600 is of the virtual ground type. Decoder sections 621b-621h are identical to section 621a, but ouput the P₁ -P₇ bits of the program code.

It should be evident that decoder 621 performs a one out of two decode for address lines A0, A4 and A8 and performs a one out of five decode for address lines A12-A14. It should be evident to one skilled in the art, moreover, that other configurations of decoders 620 and 621 could be utilized. For instance, metal decoder 620 could be arranged to perform a one out of 250 decode by doubling the size of that decoder and adding a one out of two decoder of line A₀, for instance, in front of the D level decoders, while diffusion decoder 621 would perform a one of twenty decode by deleting the A₀ address line 0 and collapsing the size thereof by deleting the odd numbered diffusion lines.

It should further be evident to those skilled in the art that similar BCD only addressing schemes may be used with other sizes of ROMs. For instance, a 7000 word may be BCD addressed with an one out of 250 metal decoder (2×5×5×5) and an one out of twenty-eight diffusion decoder (2×2×7). As can be seen; the numbers in the parenthesis are the prime number factors of 7000.

Diffusion decoders sections 621a-621h output the P₀ -P₇ bits of the program, respectively. The P₀ -P₇ bits are outputted serially on external during state times S₃ -S₁₀ in response to a decoded FETCH instruction while bits P₄ -P₇ are to be outputted serially on external during S₃ -S₆ in response to decoder FETCH HIGH instruction, as aforementioned. The P₀ -P₇ bits from decoder 621 are connected to bus 623 when strobed by shift register 622 beginning at S2φ2 for the P₀ bit and when enabled by logic 607a in response to a decoded FETCH instruction. Bits P₄ -P₇ are conducted to bus 623 starting at state time S2φ2 when strobed by shift register 622 provided logic 607b receives a FETCH HIGH command. Bus 623 is coupled to the EXT line via external output buffer 624 when enabled by external output control 608. Control 608, in combination with logic 625, couples bus 623 to buffer 624 in response to either a FETCH or FETCH HIGH command. The data on bus 623 is one-half bit early due to a one-half bit delay in buffer 624.

Program counter 601 is provided by a 151/2 bit shif register, comprising thirty-one inverters. The other half bit of delay occurs in the one bit adder/BCD corrector 604, thereby providing sixteen bits of storage for storing four BCD numerals. The least significant digit in program counter 601 is loadable from a four bit serial numeral appearing on EXT during state times S₃ -S₆ via digit control 602a in response to a LOAD PC command. As can be seen from FIG. 18, digit control 602a inserts a new digit in the least significant digit position in program counter 601 by coupling the data on EXT to inverter 626 and open-circuiting transfer gate 627 connecting inverter 628 to inverter 626. Inverters 626 and 628 are two of the thirty-one inverters in program counter 601. Digit control 602a also outputs to bus 629 serial data stored in program counter 601 when enabled by digit strobe 603, the digit appearing on line 629 being one-half bit early compared to the time at which it will be outputted on EXT in response to a decoded UNLOAD PC instruction.

Digit controls 602b-602d are identical to digit control 602a, except that they are connected to program counter 601 at appropriate places in the shift register therein to interface with the next to the least significant digit through most significant digit positions during the S₃ -S₆ state time period. Bus 629 is connected to external output control 608 which functions in combination with logic 630 for conducting the BCD digit outputting from the enable digit control 602a-602d through to EXT during S₃ -S₆ in response to a decoded UNLOAD PC instruction. Bus 629 is one-half bit early compared to the data on EXT, because of the one-half bit delay associated with output buffer 624.

Digit strobe 603 is comprised of a four bit ring shift register counter for sequentially enabling one of the digit controls 602a-602d. Shift register 603 advances in response to a LOAD PC or UNLOAD PC command by logic 631; shift register 603 is reset for enabling the LSD digit decoder 602a in response to a decoded FETCH instruction by a logic 632.

The four digit BCD number stored in program counter 601 shifts through program counter 601 and from the output thereof back to the input thereof via the one bit adder/BCD corrector 604 each instruction cycle. The contents of shift register 601 is coupled to thirty ROM address buffers 633 during S₁₅.φ2 through S₀.φ1. The output of the thirty address buffers 633 provide the A₀ -A₁₄ and A₀ -A₁₄ outputs to the metal decoder 620 and diffusion decoder 621. Only fifteen stages of the shift register in program counter 601 are outputted to ROM 600 via buffers 633 and decoders 620 and 621, inasmuch as the most significant bit of the most significant digit in program counter 601 need not be decoded when the largest address is 4999. It should be evident to one trained in the art, however, to utilize the outputs of all stages and to increase the size of the aforementioned decoder 620 or 621 to accomodate extra address lines for using larger addresses than 4999.

One bit adder/BCD corrector 604 is a single bit, serial adder that adds one to the stream of four BCD digits circulating through it from program counter 601 in response to a decoded FETCH instruction. During NON-FETCH (including FETCH HIGH) instructions, the fourt BCD digits circulate through one bit adder/BCD corrector 604 without the add one operation being performed. The one bit adder/BCD corrector 604 does a "look ahead" at the serial stream of data exiting from program counter 601 in order to determine if BCD correction is necessary when an add one operation is to be accomplished. When corrector 604 receives the least significant bit of a digit, it is also provided with the most significant bit of that digit for the "look ahead" operation. Corrector 604 is also provided with a clock signal, BCD CORRECT, for indicating to corrector 604 when the least significant bit of a digit is being received thereby. If during this time period the least significant digit is being inputted and a FETCH instruction has been decoded, one will be simply added to the least significant digit unless the first and last bits of that digit are both a logical one, (i.e., a decimal nine has been outputted), then in lieu of adding one, which would form the illegal BCD code 1010, a 0000 is outputted from corrector 604 in the corresponding four state times and an add one operation is accomplished on the next more significant digit via carry circuit 633 in corrector 604. Should that digit contain a nine, the above operation repeats and, if not, a one is added to that digit.

In one bit adder/BCD corrector 604, adder gates 634 perform the add operation when a one is outputted from add one insertion gate 635 unless inhibited by gate 636. Gate 635 is responsive to a decoded FETCH instruction and state time S15φ2 for inserting a logical one into adder 634 in the least significant bit of the least significant digit or for inserting a one in the least significant bit when enabled by carry circuit 633. Gate 636 is responsive to a decoded FETCH instruction, the A₀ and A₃ bits from program counter 601 and the output 635 for generating four logical zeros when a BCD nine is to be incremented during a FETCH instruction. Gate 636 is inabled by timing signal BCD correct at S₄ φ1, S₈ φ1, S₁₂ φ1 and S₀ φ1, the BCD correct signal being delayed 11/2 state times by a logic 637. Thus once gate 636 outputs a logical zero disabling the output from adder 634, that condition remains for four state times until the BCD correct signal is again generated from PLA 610. Carry circuit 633 is responsive to adder 634 for generating carries within a digit and to gate 636 for generating carries between digits.

The state time generator 609 comprises sixteen state time drivers, the first of which is responsive to a timing signal on IDLE for sequencing the state times generated thereby with the state times generated on the other chips in the calculator system. The outputs from the sixteen state time drivers are supplied to a PLA 610 for providing various timing signals used, for instance, for outputting the program code during S3-S10, receiving and outputting single digit addresses during S3-S6 and the like. PLA 610 also outputs in serial fashion four serial trains of digits mimicking the LOAD PC, UNLOAD PC, FETCH HIGH and FETCH instructions which are outputted from main ROM 20a-20c on IRG. Of course, IRG also transmits many instructions which are not decoded on chip 48'.

These four serial bit trains are supplied to four serial instruction decoder circuits E1-E4 in decoder 611, along with the instruction words appearing on IRG. Each decoder in serial instruction decoder 611 performs an exclusive OR function on the data from IRG and one of the bit trains from PLA 610. If the exclusive OR function is satisfied for all bit positions of the instruction word (indicating that there was a match between the instruction word outputted and the bit train from PLA 610), then either a LOAD PC, UNLOAD PC, FETCH HIGH or FETCH instruction has been decoded, depending, of course, on which bit train is provided to the particular decoder for which the exclusive OR function was satisfied. Cross-coupled gates 638 perform exclusive OR function and discharge NODE 639 when a mismatch occurs anytime during the exclusive OR operation. The decoder circuitry encompassed by reference lines E2-E4.

It should be remembered that in the calculator system disclosed, an instruction is normally decoded during one instruction cycle and performed during the following instruction cycle. Inasmuch as the UNLOAD PC, FETCH HIGH AND FETCH operations output data on EXT and considering that the keyboard register 54 in arithmitic chip 10 must be sensitized to input this data by a EXTKR instruction, the data to appear on EXT from chip 48' must appear one instruction cycle later than the normal instruction cycle for executing decoded instructions. That is, the FETCH, FETCH HIGH and UNLOAD PC instructions result in data being outputted on external during the second instruction cycle following decoding. ROM 600 is a relatively large ROM, so for FETCH, or FETCH HIGH instructions the precharge cycle begins during the beginning of the instruction cycle immediately following the decoding of the instruction (by the FETCH M1 and FETCH HIGH M1 signals) whereas the conditional discharge occurs about one instruction cycle later. Thus ROM precharge circuitry 640 is responsive to FETCH M1 and FETCH HIGH M1 whereas the logic 625, 607a, 607b, add one/BCD corrector 604, logic 632 and the like are sensitized to delayed FETCH instructions FETCH M2 or FETCH M10.

Referring now to FIG. 20, there is depicted a simplified schematic of the Fast Binary Coded Decimal Incrementing Circuit, which is also referred to as Add One/BCD Corrector 604. The numbering of the elements in FIG. 20 is consistent with FIGS. 18a-18i; however, the individual elements are generally not shown in as great detail. Also, various gating signals for clocking the loads of the logic gates and for clocking the transfer gates, as well as the transfer gates themselves, are not shown for sake of clarity.

I have described my invention in connection with certain specific embodiments thereof. It is to be understood that modification may now suggest itself to those skilled in the art and that this invention is not limited to the specific embodiment disclosed, except as set forth in the appended claims. 

What is claimed is:
 1. An incrementing and binary coded decimal corrector circuit for incrementing and for automatically binary coded decimal correcting in response to a control signal a number stored as a series of bits representing a plurality of binary coded decimal digits in a memory having an output, said circuit comprising:(a) first adder means having sum and carry outputs for adding one to the least significant bit of the least significant binary coded decimal digit output from said memory in response to said control signal, (b) second adder means having sum and carry outputs for adding one to bits outputted from said memory in response to a carry being outputted from either of said adder means during a preceding bit of the binary coded decimal digit being outputted from said membory and in response to a decimal carry signal, (c) sampling means for sampling both the most and the least significant bits of the least significant binary coded decimal digit outputted from said memory, (d) detection means, responsive to said sampling means, and said control signal, for temporarily disabling the sum outputs of both said adder means and momentarily generating said decimal carry signal during the outputting of the least significant bit of the next binary coded decimal digit from said memory whenever:(i) the binary coded decimal digit being outputted from said memory is equivalent to a decimal nine, and (ii) said control signal is present.
 2. The circuit according to claim 1, wherein said first and second adder means comprise a half adder responsive at one input thereof to the bits outputted from said memory and wherein the decimal carry signal a bit carry from said half adder and said control signal are provided via logic means to the other input of said half adder.
 3. The circuit according to claim
 2. wherein said detection means comprises a NAND gate responsive to said sampling means, the output of said memory, the output of said logic means, said NAND gate being enabled only when said sampling means is sampling the most significant bit of a binary coded decimal digit being outputted from said memory.
 4. The circuit according to claim 1, wherein said memory is a multibit shift register whose output is coupled to both said adder means and wherein said sampling means is coupled to a stage of said shift register separated from the output thereof by three stages thereof.
 5. A binary coded decimal digit memory and incrementing circuit comprising:(a) a multi-stage shift register means for storing a series of bits representing a plurality of binary coded decimal digits, said shift register means having an output; (b) sampling means coupled to said shift register means for simultaneously sampling the most significant bit and the least significant bit of each binary coded decimal digit being outputted from said shift register means, said sampling means including a decimal nine detecting means for detecting when the most significant bit and the least significant bit are both logical ones thereby detecting when the binary coded decimal digit is nine; (c) a carry signal generator means responsive to said sampling means for generating a carry signal prior to the outputting of the least significant bit of the next binary coded decimal digit whenever said decimal nine detecting means detects that the previous binary coded decimal digit is a nine and a control signal is present; and (d) an adder means having sum and bit carry outputs responsive to said output of said shift register means, said sampling means, said carry signal generator means and said control signal for adding one to the least significant bit of the least significant binary coded decimal digit outputted from said shift register means when said decimal nine detector detects the least significant binary coded digit is not nine in the presence of said control signal and for adding one to the least significant bit of binary coded digits outputted from said shift register means other than the least significant binary coded decimal digit in the presence of said carry signal and said control signal.
 6. The circuit according to claim 5 wherein said carry signal generator means is further responsive to said adder means for generating said carry signal in the presence of a bit carry output.
 7. The circuit according to claim 5, further comprising disabling means responsive to said sampling means, said carry signal generator means and said control signal and connected to said adder means, for disabling said adder means when said decimal nine detecting means detects that the least significant binary coded decimal digit is nine in the presence of said control signal, and for disabling said adder means when said decimal nine detecting means detects that a binary coded decimal digit other than the least significant digit is nine in the presence of said carry signal and said control signal.
 8. The circuit according to claim 5, wherein said shift register means comprises:a number of cascade connected stages, each of said stages being a pair of clocked inverters, said number of stages being one less than four times the number of binary coded decimal digits storable in said circuit; and an inverter having an input coupled to said sum output of said adder means and an output coupled to the first of said cascade connected states, whereby adder means and said inverter together provide one bit of storage capacity. 